﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace SiteParser.Core.Configuration
{
	public class FormattersConfiguration : ConfigurationElementCollection
	{
		private const string FORMATTER_ELEMENT_NAME = "formatter";

		public FormattersConfiguration()
		{
			this.AddElementName = FORMATTER_ELEMENT_NAME;
		}

		protected override ConfigurationElement CreateNewElement() {
			return new FormatterItemConfiguration();
		}

		protected override object GetElementKey(ConfigurationElement element) {
			return ((FormatterItemConfiguration)element).Name;
		}
	}
}
